package com.blacktry.entity.blog;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author blackTry
 * @since 2022-02-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Comments对象", description="")
public class Comments implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "评论ID")
    @TableId(value = "comment_id", type = IdType.AUTO)
    private Integer commentId;

    @ApiModelProperty(value = "发表用户ID")
    private String userId;

    @ApiModelProperty(value = "评论博文ID")
    private Integer articleId;

    @ApiModelProperty(value = "点赞数")
    private Long commentLikeCount;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")  //出参格式化
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss") //入参格式化
    @ApiModelProperty(value = "评论日期")
    private Date commentDate;

    @ApiModelProperty(value = "评论内容")
    private String commentContent;

    @ApiModelProperty(value = "父评论ID")
    private Integer parentCommentId;

    @ApiModelProperty(value = "评论状态:1通过,0待审核")
    private Integer commentStatus;

    @ApiModelProperty(value = "是否置顶")
    private Integer commentTop;


}
